export default {
  head: {
    title: 'missyeah',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1, shrink-to-fit=no'
      },
      {
        hid: 'keyword',
        name: 'keyword',
        content: 'missyeah'
      },
      {
        hid: 'description',
        name: 'description',
        content: 'missyeah'
      }
    ],
    link: [{
        rel: 'stylesheet',
        href: 'https://cdn.jsdelivr.net/npm/vant@2.11/lib/index.css'
      },
      {
        rel: 'stylesheet',
        href: 'https://unpkg.com/element-ui/lib/theme-chalk/index.css'
      },
    ]
  },
  css: [
    '~assets/css/app.css',
    '~assets/css/style.less',
    '~assets/css/styleBoostrap.css',
  ],
  plugins: [{
      src: "@/plugins/app",
      ssr: true
    },
    {
      src: "@/plugins/router",
      ssr: false
    },
    {
      src: "@/plugins/plugins",
      ssr: false
    },
    {
      src: "@/plugins/vant",
      ssr: true
    },
    {
      src: "@/plugins/element",
      ssr: true
    },
  ],
  components: true,
  buildModules: [],
  modules: [
    '@nuxtjs/axios',
    'bootstrap-vue/nuxt',
  ],
  proxy: {
    '/api': {
      target: 'http://192.168.0.254:8888',
      //target: 'http://api.missyeah.com',
      //target: 'http://192.168.0.253:7777',
    }
  },
  axios: {
    proxy: true, // 表示开启代理
  },
  env: {
    BASE_URL: "http://192.168.0.254:8888",
    //BASE_URL: process.env.BASE_URL,
    //BASE_URL: 'http://192.168.0.253:7777',
    //BASE_URL: 'http://api.missyeah.com',
    NODE_ENV: process.env.NODE_ENV,
  },
  router: {
    middleware: ["device"],
  },
  build: {}
}
